<title>建设项目配套绿地审核事后监督检查登记表-增加项目</title>
<!-- /section:settings.box -->
<div class="row">
	<div class="col-xs-12 greening_add">
		<form class="form-horizontal registerform">
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">建设单位：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_c_unit" value="" id="hx_c_unit"
							class="input-xlarge" datatype="*" nullmsg="请输入建设单位"
							placeholder="请输入建设单位">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">项目名称：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_p_name" value="" id="hx_p_name"
							class="input-xlarge" datatype="*" nullmsg="请输入项目名称"
							placeholder="请输入项目名称">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">项目地址：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_p_address" value="" id="hx_p_address"
							class="input-xlarge" datatype="*" nullmsg="请输入项目地址"
							placeholder="请输入项目地址">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">园档案号：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_docket_no" value="" id="hx_docket_no"
							class="input-xlarge" datatype="*" nullmsg="请输入园档案号"
							placeholder="请输入园档案号">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<!-- 净用地面积（M²）  审核面积（M²）   审核公共绿地（M²） 为登记录入内容  ;
			  	                                         实测面积（M²）      实测公共绿地绿地面积（M²） 为确认表填入内容 ;
			  	差额面积（M²）=审核面积（M²）-实测面积（M²）
			  	差额公共绿地面积（M²）=审核公共绿地（M²）-实测公共绿地绿地面积（M²）
			  	 -->
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">净用地面积（M²）：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_jy_area" value="" id="hx_jy_area"
							class="input-xlarge" datatype="*" nullmsg="请输入净用地面积（M²）"
							placeholder="请输入净用地面积（M²）">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">审核面积/应留绿地面积（M²）：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_sh_area" value="" id="hx_sh_area"
							class="input-xlarge" datatype="*" nullmsg="请输入审核面积（M²）"
							placeholder="请输入审核面积（M²）">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">审核公共绿地/应留公共面积（M²）：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="" value="" id="hx_shgy_area"
							class="input-xlarge" datatype="*" nullmsg="请输入审核公共绿地（M²）"
							placeholder="请输入审核公共绿地（M²）">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">规划预留绿地面积（M²）：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_ghylld_area" value=""
							id="hx_ghylld_area" class="input-xlarge" datatype="*"
							nullmsg="请输入规划预留绿地面积（M²）" placeholder="请输入规划预留绿地面积（M²）">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">规划预留公共绿地面积（M²）：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_ghylgyld_area" value=""
							id="hx_ghylgyld_area" class="input-xlarge" datatype="*"
							nullmsg="请输入规划预留公共绿地面积（M²）" placeholder="请输入规划预留公共绿地面积（M²）">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">绿化施工单位：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_lhsg_unit" value="" id="hx_lhsg_unit"
							class="input-xlarge" datatype="*" nullmsg="请输入绿化施工单位"
							placeholder="请输入绿化施工单位">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">施工单位联系人：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_sgwd_linkman" value=""
							id="hx_sgwd_linkman" class="input-xlarge" datatype="*"
							nullmsg="请输入施工单位联系人" placeholder="请输入施工单位联系人">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">施工单位联系电话：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_sgdw_phone" value=""
							id="hx_sgdw_phone" class="input-xlarge" datatype="*"
							nullmsg="请输入施工单位联系电话" placeholder="请输入施工单位联系电话">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">收件日期：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_sj_date" value="" id="hx_sj_date"
							class="input-xlarge" datatype="*" nullmsg="收件日期"
							placeholder="请输入收件日期">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">联系人：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_linkman" value="" id="hx_linkman"
							class="input-xlarge" datatype="*" nullmsg="联系人"
							placeholder="请输入联系人">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">联系电话：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<input type="text" name="hx_linkphone" value="" id="hx_linkphone"
							class="input-xlarge" datatype="*" nullmsg="联系电话"
							placeholder="请输入电话">
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right"
					for="form-field-name">是否完工：</label>
				<div class="input-group col-sm-9">
					<div class="in_txt">
						<select datatype="*" nullmsg="是否完工" id="hx_sfwg">
							<option value="完工">完工</option>
							<option value="未完工">未完工</option>
						</select>
					</div>
					<div class="tishi">
						<div class="Validform_checktip"></div>
					</div>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info save" type="button" id="btnSubmit">
						<i class="ace-icon fa fa-check bigger-110"> </i>完成登记
					</button>
					&nbsp; &nbsp;
					<button class="btn btn-close" type="button"
						onclick="location.href='#greening/list'">
						<i class="ace-icon glyphicon glyphicon-remove bigger-110"> </i>取消登记
					</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">var scripts = [null, null];
var $scope = $(".greening_add");
$('.page-content-area').ace_ajax('loadScripts', scripts, function() {
	//表单验证
	var vform = $(".registerform").Validform({
		tiptype: 2
	});
	$('#btnSubmit').click(function() {
		if (!vform.check(false)) {
			return;
		}
		//var fn = $("#hx_fn",$scope).val();
		var c_unit = $("#hx_c_unit", $scope).val();//建设单位
		var p_name = $("#hx_p_name", $scope).val();//项目名称
		var p_address = $("#hx_p_address", $scope).val();//项目地址
		var docket_no = $("#hx_docket_no", $scope).val();//园档案号
		
		var jy_area = $("#hx_jy_area", $scope).val();//净用地面积
		var sh_area = $("#hx_sh_area", $scope).val();//审核面积/应留绿地面积
		var shgy_area = $("#hx_shgy_area", $scope).val();//审核公共绿地/应留公共面积
		var ghylld_area = $("#hx_ghylld_area", $scope).val();//规划预留绿地面积
		var ghylgyld_area = $("#hx_ghylgyld_area", $scope).val();//规划预留公共绿地面积
		
		var lhsg_unit = $("#hx_lhsg_unit", $scope).val();//绿化施工单位
		var sgwd_linkman = $("#hx_sgwd_linkman", $scope).val();//施工单位联系人
		var sgdw_phone = $("#hx_sgdw_phone", $scope).val();//施工单位联系电话
		
		var sj_date = $("#hx_sj_date", $scope).val();//收件日期
		var linkman = $("#hx_linkman", $scope).val();//联系人
		var linkphone = $("#hx_linkphone", $scope).val();//联系电话
		var sfwg = $("#hx_sfwg", $scope).val();//是否完工		
		$.post('/greening/ajax_green_add', {
			'unit': c_unit,
			'name': p_name,
			'p_address': p_address,
			'docket_no': docket_no,
			'jy_area': jy_area,
			'sh_area': sh_area,
			'shgy_area': shgy_area,
			'ghylld_area': ghylld_area,
			'ghylgyld_area': ghylgyld_area,
			'lhsg_unit': lhsg_unit,
			'sgwd_linkman': sgwd_linkman,
			'sgdw_phone': sgdw_phone,
			'sj_date': sj_date,
			'linkman': linkman,
			'linkphone': linkphone,
			'sfwg': sfwg
		}, function(data) {
			if (200 === data.status) {
				message_box.show(data.data);
				location.href="/#greening/list";			
			} else {
				message_box.show(data.data);
			}
		}, 'json');
		//console.log(form_data)
	})
})</script>
